﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master" CodeBehind="EditPages.aspx.vb" Inherits="Phila.EditPages" Debug="true" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" cellpadding="3" cellspacing="3" align="center">
        <tr>
            <td>
                <h1>
                    Add/Edit Pages</h1>
                <fieldset>
                    <legend><b>Pages Details</b></legend>
                    <table width="98%" align="center" cellpadding="2" cellspacing="2">
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <b>Page Name</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" MaxLength="500" Width="500px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqName" runat="server" ControlToValidate="txtName"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Page Name"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <%--<tr>
                            <td>
                                <strong>Summary</strong>
                            </td>
                            <td>
                            </td>
                        </tr>--%>
                        <tr>
                            <td>
                                <strong>Description</strong>
                            </td>
                            <td>
                               <cc1:Editor ID="txtDescription" runat="server" Height="300px" Width="100%" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>View Order</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="txtViewOrder" runat="server" MaxLength="500" Width="100px">0</asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqViewOrder" runat="server" Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter View Order"
                                   ControlToValidate="txtViewOrder" CssClass="red"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="regVOrder" runat="server" 
                                    ControlToValidate="txtVieworder" ErrorMessage="&lt;br /&gt;Enter only Numeric value" 
                                    ValidationExpression="\d*[0-9]" 
                                    ValidationGroup="submit" Display="Dynamic" CssClass="red"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>IsActive</strong>
                            </td>
                            <td>
                                <asp:CheckBox ID="chkIsActive" runat="server" Checked="True" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
                <fieldset>
                    <legend><b>Meta Details</b></legend>
                    <table width="98%" align="center" cellpadding="2" cellspacing="2">
                        <tr>
                            <td width="180px">
                                <strong>Title</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMTitle" runat="server" MaxLength="500" Width="300px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqMTitle" runat="server" ControlToValidate="txtMTitle"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Page Title"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Keywords</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMKeywords" runat="server" MaxLength="500" Width="300px" Rows="5"
                                    TextMode="MultiLine"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqMKeywords" runat="server" ControlToValidate="txtMKeywords"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Page Keywords"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Description</strong>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMDescription" runat="server" MaxLength="500" Width="300px" Rows="5"
                                    TextMode="MultiLine"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqMDesc" runat="server" ControlToValidate="txtMDescription"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Page Description"
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
                <fieldset>
                    <table width="98%" cellpadding="2" cellspacing="2" align="center">
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="submit" CssClass="form-button" />&nbsp;&nbsp;
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="form-button" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
            </td>
        </tr>
    </table>
                                <asp:ScriptManager ID="ScriptManager1" runat="server">
                                </asp:ScriptManager>
</asp:Content>
